package com.fifth.business.feign;


import com.fifth.common.pojo.dto.CommonResult;
import com.fifth.common.pojo.entity.Goods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "mrcai-commodity")
public interface ProductFeign {
    /**
     * 查询所有商品
     * @return
     */
   /* @GetMapping("api/goods/goodsall")
    public CommonResult GoodsAll(Integer currentPage,Integer pageSize,Goods goods,String rid);*/

    /**
     * 根据id删除
     */
    @PostMapping("api/goods/goodsdelete/{id}")
    public CommonResult GoodsDelete(@PathVariable String id);

    /**
     * 添加
     */
    @PostMapping("api/goods/goodsinsert")
    public CommonResult GoodsInsert(@RequestBody Goods goods);

    /**
     * 修改商品
     */
    @PostMapping("api/goods/goodsupdate")
    public CommonResult Goodsupdate(@RequestBody Goods goods);
}
